package com.manage.design.pojo;

import javax.validation.constraints.NotEmpty;

/**
 * @Create by ldr
 * @create 2018/9/7 11:40
 * @Description:操作员实体类
 */
public class Operator {

    /**
     * 操作员编号
     */

    private Integer operatorId;

    /**
     * 操作员账号
     */
    @NotEmpty(message = "账号不能为空")
    private String username;

    /**
     * 操作员密码
     */
    @NotEmpty(message="密码不能为空")
    private String password;

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    @Override
    public String toString() {
        return "Operator{" +
                "operatorId=" + operatorId +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}